// 
import Mock from 'mockjs';

Mock.mock("/web/orders","get",function(){
    return Mock.mock({
            "pageIndex": 1,
            "pageSize": 10,
            "total":10,
            "data|10": [
              {
                "id+1": 200,
                "orderNum|72082005306398345-72089999999999999":1
                ,
                "createAt": '@datetime',
                "customerId|180000-200000": 1,
                "totalAmount|250-1000":1,
                "storeName|1": ["九龙城","东三街","王府井","大卫城"],
                "status|1": ["待付款","待发货","待收货","已完成","待退款","已退款","已拒绝","已处理"]
              }
            ]
          }
     )
})

Mock.mock("/web/orders:statistics","get",function(){
  return Mock.mock({
    "todayOrder|5000-8000": 1,
    "unPaid|100-300": 1,
    "undelivered|100-300":1,
    "notReceived|100-300":1,
    "wan|1000-300":1,
    "unrefunded|100-200":1,
    "refunded|100-200":1
  })
})

